package cn.project.lemontree.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Api
public class Insurance  implements Serializable {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "保险序列号")
    private Integer insuranceId;
    @TableField(exist = false)
    private Parent parent;
    @TableField(exist = false)
    private Child child;
    @ApiModelProperty(value = "保险原因")
    private String ddesc;
    @ApiModelProperty(value = "保险金额")
    private Integer price;
    @ApiModelProperty(value = "保险医院")
    private String hospital;
    @ApiModelProperty(value = "保险时间",hidden = true)
    private String time;
    @ApiModelProperty(value = "保险图片地址")
    private String pictureAddress;
    @TableLogic
    @ApiModelProperty(hidden = true)
    private Integer deleted;
}
